package com.ruoyi.hismedrec.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Objects;

/**
 * @ClassName PatMasterIndexDo
 * @Author samula
 * @Descripe product by com.doctcloud
 * @Data 2025-09-23 3:05
 **/
public class PatMasterIndexDo extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @Excel(name = "患者ID")
    private String patientId;
    @Excel(name = "患者姓名")
    private String name;
    @Excel(name = "性别")
    private String sex;
    @Excel(name = "身份")
    private String identity;
    @Excel(name = "费别")
    private String chargeType;

    public PatMasterIndexDo() {
    }

    public PatMasterIndexDo(String patientId, String name, String sex, String identity, String chargeType) {
        this.patientId = patientId;
        this.name = name;
        this.sex = sex;
        this.identity = identity;
        this.chargeType = chargeType;
    }

    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getChargeType() {
        return chargeType;
    }

    public void setChargeType(String chargeType) {
        this.chargeType = chargeType;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PatMasterIndexDo that = (PatMasterIndexDo) o;
        return Objects.equals(patientId, that.patientId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(patientId);
    }

    @Override
    public String toString() {
        return "PatMasterIndexDo{" +
                "patientId='" + patientId + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", identity='" + identity + '\'' +
                ", chargeType='" + chargeType + '\'' +
                '}';
    }
}
